<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
</script>
</head>
<body>

<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "cmsDictionary.function"/> - <@s.m "global.list"/></div>
	<form class="ropt">
		<input type="submit"  class="add" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_list.do" method="post" style="padding-top:5px;">
<div>
<@p.select name="queryType" value=queryType list=typeList headerKey="" headerValue="cmsDictionary.type.allType"/>
<input class="query" type="submit" value="<@s.m "global.query"/>"/>
</div>
</form>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="queryType" value="${queryType!}"/>
<@p.table value=pagination;cmsDictionary,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${cmsDictionary.id}'/><#t/>
	</@p.column><#t/>
	<@p.column title="ID">${cmsDictionary.id}</@p.column><#t/>
	<@p.column code="cmsDictionary.name">${cmsDictionary.name!}</@p.column><#t/>
	<@p.column code="cmsDictionary.value">${cmsDictionary.value!}</@p.column><#t/>
	<@p.column code="cmsDictionary.type">${cmsDictionary.type}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<a href="v_edit.do?id=${cmsDictionary.id}&pageNo=${pageNo!}" class="pn-opt"><@s.m "global.edit"/></a> | <#rt/>
		<a href="o_delete.do?ids=${cmsDictionary.id}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.delete"/>')) {return false;}" class="pn-opt"><@s.m "global.delete"/></a><#t/>
	</@p.column><#t/>
</@p.table>
<div><input type="button" value="<@s.m "global.delete"/>" onclick="optDelete();" class="del-button"/></div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>